package com.joolun.weixin.entity;

import java.math.BigDecimal;
import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 直播间红包对象 zb_red_envelopes
 * 
 * @author joolun
 * @date 2025-06-05
 */
@Data
public class ZbRedEnvelopes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品图片链接 */
    @Excel(name = "商品图片链接")
    private String img;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private BigDecimal price;

    /** 划线价格 */
    @Excel(name = "划线价格")
    private BigDecimal originalPrice;

    /** 展示标签：特价:1, 限时:2, 新品:3, 钜惠:4, 秒杀:5,拼团:6不显示:0 */
    @Excel(name = "展示标签：特价:1, 限时:2, 新品:3, 钜惠:4, 秒杀:5,拼团:6不显示:0")
    private String tab;

    /** 购买模式 链接购买:1, 二维码购买:2 */
    @Excel(name = "购买模式 链接购买:1, 二维码购买:2")
    private String pay;

    /** 商品链接（链接购买必须） */
    @Excel(name = "商品链接", readConverterExp = "链=接购买必须")
    private String url;

    /** 商品二维码（二维码购买必须） */
    @Excel(name = "商品二维码", readConverterExp = "二=维码购买必须")
    private String qrcode;

    /** 购物按钮 */
    @Excel(name = "购物按钮")
    private String linkText;

    /** 主体id */
    @Excel(name = "主体id")
    private String corpId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }
    public void setTab(String tab) 
    {
        this.tab = tab;
    }

    public String getTab() 
    {
        return tab;
    }
    public void setPay(String pay) 
    {
        this.pay = pay;
    }

    public String getPay() 
    {
        return pay;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setQrcode(String qrcode) 
    {
        this.qrcode = qrcode;
    }

    public String getQrcode() 
    {
        return qrcode;
    }
    public void setLinkText(String linkText) 
    {
        this.linkText = linkText;
    }

    public String getLinkText() 
    {
        return linkText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("img", getImg())
            .append("price", getPrice())
            .append("originalPrice", getOriginalPrice())
            .append("tab", getTab())
            .append("pay", getPay())
            .append("url", getUrl())
            .append("qrcode", getQrcode())
            .append("linkText", getLinkText())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
